package com.hankai.dao;

import com.google.common.collect.Ordering;
import com.hankai.pojo.OrderItem;
import org.apache.ibatis.annotations.Arg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderItem record);

    int insertSelective(OrderItem record);

    OrderItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderItem record);

    int updateByPrimaryKey(OrderItem record);
    List<OrderItem> getByOrderNoUserId(@Param("orderNo") Long orderNo, @Param("UserId") Integer userId);

    void  insertAll(@Param("orderItemList") List<OrderItem> orderItemList);


    List<OrderItem> getByOrderNo(Long orderNo);
}